package pers.cj.pdos.entity;

import com.baomidou.mybatisplus.extension.activerecord.Model;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 
 * </p>
 *
 * @author chenj
 * @since 2020-03-10
 */
public class House extends Model<House> {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    private String id;

    /**
     * 所属门店
     */
    private String storeId;

    /**
     * 名称
     */
    private String name;

    /**
     * 编号(唯一)
     */
    private String no;

    /**
     * 备注
     */
    private String remark;

    /**
     * 是否是默认仓库
     */
    private Boolean def;

    /**
     * 发货联系人
     */
    private String contacts;

    /**
     * 发货联系人电话
     */
    private String phone;

    /**
     * 发货联系人邮箱
     */
    private String email;

    /**
     * 邮编
     */
    private String code;

    /**
     * 地址
     */
    private String address;

    /**
     * 状态 1正常 2停用
     */
    private Integer status;

    /**
     * 是否锁定
     */
    private Boolean locking;

    /**
     * 是否是系统创建仓库
     */
    private Boolean sys;

    private Date time;

    /**
     * 所属公司
     */
    private String companyId;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }
    public String getStoreId() {
        return storeId;
    }

    public void setStoreId(String storeId) {
        this.storeId = storeId;
    }
    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }
    public String getNo() {
        return no;
    }

    public void setNo(String no) {
        this.no = no;
    }
    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }
    public Boolean getDef() {
        return def;
    }

    public void setDef(Boolean def) {
        this.def = def;
    }
    public String getContacts() {
        return contacts;
    }

    public void setContacts(String contacts) {
        this.contacts = contacts;
    }
    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }
    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }
    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }
    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }
    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }
    public Boolean getLocking() {
        return locking;
    }

    public void setLocking(Boolean locking) {
        this.locking = locking;
    }
    public Boolean getSys() {
        return sys;
    }

    public void setSys(Boolean sys) {
        this.sys = sys;
    }
    public Date getTime() {
        return time;
    }

    public void setTime(Date time) {
        this.time = time;
    }
    public String getCompanyId() {
        return companyId;
    }

    public void setCompanyId(String companyId) {
        this.companyId = companyId;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "House{" +
            "id=" + id +
            ", storeId=" + storeId +
            ", name=" + name +
            ", no=" + no +
            ", remark=" + remark +
            ", def=" + def +
            ", contacts=" + contacts +
            ", phone=" + phone +
            ", email=" + email +
            ", code=" + code +
            ", address=" + address +
            ", status=" + status +
            ", locking=" + locking +
            ", sys=" + sys +
            ", time=" + time +
            ", companyId=" + companyId +
        "}";
    }
}
